      SUBROUTINE SETUP
      RETURN
      END
C   HS110
      SUBROUTINE EF(X,FX)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX)
      INTEGER I
      DOUBLE PRECISION S,P,FX
      ICF=ICF+1
      S=0.D0
      P=1.D0
      DO      100      I=1,10
      S=S+DLOG(DABS(X(I)-2.D0))**2+DLOG(DABS(10.D0-X(I)))**2
      P=P*X(I)
  100 CONTINUE
      FX=S-DEXP(.2D0*DLOG(DABS(P)))
      RETURN
      END
      SUBROUTINE EGRADF(X,GRADF)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX),GRADF(NX),P
      ICGF=ICGF+1
      P=1.D0
      DO      100      I=1,10
      P=P*X(I)
 100  CONTINUE
      P=-.2D0*DEXP(.2D0*DLOG(DABS(P)))
      DO      200      I=1,10
      GRADF(I)=2.D0*(DLOG(DABS(X(I)-2.D0))/(X(I)-2.D0)-DLOG
     1               (DABS(10.D0-X(I)))/(10.D0-X(I)))+P/X(I)
  200  CONTINUE
      RETURN
      END
      SUBROUTINE EH(I,X,HXI)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),HXI
      INTEGER I
      CRES(I)=CRES(I)+1
      RETURN
      END
      SUBROUTINE EGRADH(I,X,GRADHI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX),GRADHI(NX)
      CGRES(I)=CGRES(I)+1
      RETURN
      END
      SUBROUTINE EG(I,X,GXI)
      INCLUDE 'FUCO.INC'
      DOUBLE PRECISION X(NX),GXI
      INTEGER I
      IF ( GUNIT(1,I+NH) .EQ. -1 )CRES(I+NH)=CRES(I+NH)+1
      IF( I .GT. 10)      GXI=9.999D0-X(I-10)
      IF( I .LE. 10)      GXI=X(I)-2.001D0
      RETURN
      END
      SUBROUTINE EGRADG(I,X,GRADGI)
      INCLUDE 'FUCO.INC'
      INTEGER I
      DOUBLE PRECISION X(NX) ,GRADGI(NX)
      IF ( GUNIT(1,I+NH) .EQ. 1 ) RETURN 
      CGRES(I+NH)=CGRES(I+NH)+1
      END
      BLOCK DATA
      INCLUDE 'BLOCO.INC'
      INTEGER I,J
      DATA NAME/'HS110'/
      DATA (X(I),I=1,10)/10*9.D0/
      DATA N/10/ , NH/0/ , NG/20/
      DATA DEL0/0.10D0/ ,TAU0/1.D0/ ,TAU/.1D0/
      DATA (GUNIT(1,J),J=1,20)/20*1/,(GUNIT(2,J),J=1,20)/1,2,3,4,5,6,7,
     F     8,9,10,1,2,3,4,5,6,7,8,9,10/,(GUNIT(3,J),J=1,20)/10*1,10*-1/
      END

